/* eslint-disable */
import Cesium from "cesium/Cesium";
import widget from "cesium/Widgets/widgets.css";
class earth {
    constructor() {
        this.viewer = null

    }
    static createEearth(id) {
        let viewerOption = {
            geocoder: false, // 地理位置查询定位控件
            homeButton: false, // 默认相机位置控件
            timeline: false, // 时间滚动条控件
            navigationHelpButton: false, // 默认的相机控制提示控件
            fullscreenButton: true, // 全屏控件
            scene3DOnly: true, // 每个几何实例仅以3D渲染以节省GPU内存
            baseLayerPicker: false, // 底图切换控件
            animation: false // 控制场景动画的播放速度控件
        };
        this.viewer = new Cesium.Viewer(id, viewerOption);
        this.viewer._cesiumWidget._creditContainer.style.display = "none"; // 隐藏版权
        this.viewer._cesiumWidget._creditContainer.style.bottom = "-20px"
    }
    static getViewer() {
        return this.viewer;
    }

};
export default earth;